-
Notifications
You must be signed in to change notification settings - Fork 49
AppSideNav
: fix scrolling issue and being able to focus hidden links issue
#2869
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
AppSideNav
: fix scrolling issue, AppSideNav
: fix scrolling issue and being able to focus hidden links issue
📦 RC Packages PublishedLatest commit: 345c550 |
|
||
More specifically: | ||
|
||
- `minimized → maximized` transition: the content appears with a fade-in effect, when the width animation is already completed (the width is maximized) | ||
- `maximized → minimized` transition: the content disappears at once with no transition, before the width animation starts | ||
|
||
Another option is to use the **`isMinimized` parameter**, which is useful in those cases where the content is so custom/specialized that it can’t just be faded in/out but needs to have a different kind of transition (eg. remain visible but change layout or respond to the width of the container). This value is passed down by the `<:header/body/footer>` named blocks as parameters, and can be used to build custom logic on the consumers’ side. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The component doesn't return named blocks or the isMinimized
state to the consumer, so this is not true.
website/docs/components/app-side-nav/partials/code/how-to-use.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good overall but I had a few questions still (see comments)
Co-authored-by: Kristin Bradley <[email protected]>
…ide-nav--hide-when-minimized
1a2188c
to
ffb7563
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shleewhite left a bunch of comments/questions, but overall the PR is so much better and clean with your latest changes! 🙌
showcase/tests/integration/components/hds/app-side-nav/index-test.js
Outdated
Show resolved
Hide resolved
showcase/tests/integration/components/hds/app-side-nav/index-test.js
Outdated
Show resolved
Hide resolved
showcase/tests/integration/components/hds/app-side-nav/index-test.js
Outdated
Show resolved
Hide resolved
…est.js Co-authored-by: Cristiano Rastelli <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't tested the changes in a production environment (I imagine you have done it) but the code review is OK for me.
Well, not just OK: this is a great PR. 👏 👏 👏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
📌 Summary
If merged, this PR would do some cleanup of the AppSideNav component
There are also updates to tests to check for the correct behavior (+ 1 bonus fix for a Modal test):
overflow: hidden
is set appropriatelybody
element in tests🧪 Tested in Atlas:
🔗 External links
Jira ticket: HDS-4827
Jira ticket: HDS-4858
👀 Component checklist
💬 Please consider using conventional comments when reviewing this PR.